%% DATA MOMENTS
% Each quintile group account for equal share of firms 
    
%% Bartik response

    data.bartik_wage_response = 1.0021;
    %data.bartik_wage_response = 1.0014; %new coefficient after controlling for weighted destimation gdp per capita

    
%% Table 2 of March 2020 Draft

    % wage regression coefficient
    data.slope_ext = 0.152;
    data.slope_int = 0.107; 
        
    
%% Table 1 and Table 2 of "Empirics/Results/14-October2019/Notes.pdf"

    % total number of firms to normalize degrees
    data.N = 1e5;   

    data.mean_outdegree         = 11.4/data.N;
    data.mean_indegree          = 11.2/data.N;    
    data.mean_lnsales           = -1.65; % demeaned           
    data.sd_lnsales             = 1.64;  % demeaned    
    data.exporter_share         = 0.28;
    data.export_intensity       = 0.24;  

    data.mean_outdegree_d       = [  5.62    7.00   6.65   11.74   25.14]/data.N;
    data.mean_indegree_d        = [  5.77    6.65   5.79   11.36   25.76]/data.N;
    
    data.network_sales_share_d  = [  0.03    0.04   0.04    0.10    0.78];      
    data.mean_lnsales_d         = [ -2.19   -2.02  -2.24   -1.45   -0.43];     % industry adjusted
    data.sd_lnsales_d           = [  1.37    1.34   1.37    1.52    1.79];
    
    data.exporter_share_d       = [  0.08    0.18   0.16    0.34    0.57];
    data.export_intensity_d     = [  0.24    0.21   0.23    0.23    0.26]; 
    
    data.avg_wgt_lnwageS_d        = [ -0.07   -0.05  -0.05   -0.001  0.16];
    data.avg_unwgt_lnwageS_d      = [ -0.04   -0.03   -0.03   0.002   0.10];

    data.avg_unwgt_lnwageS_d4 = data.avg_unwgt_lnwageS_d(2:5) - data.avg_unwgt_lnwageS_d(1);
    data.avg_wgt_lnwageS_d4 = data.avg_wgt_lnwageS_d(2:5) - data.avg_wgt_lnwageS_d(1); 
    
    
%% First 4 matrices of "Empirics/Results/14-October2019/SalesPurchMatrix.txt"

    data.share_spend_d      = [  .1685117	.1146727	.1043016	.1884605	.4240535    ;...
                                 .1157377	.1229414	.1127482	.1926515	.4559212    ;...
                                 .096204	.1167081	.1097343	.1873913	.4899624    ;...
                                 .0771136	.0889683	.0849523	.1991428	.549823     ;...
                                 .0301178	.0309242	.0278476	.0849018	.8262087    ;       ];
                             
    data.share_indegree_d   = [  .1461286	.1576371	.1396091	.2088469	.3477784    ;...
                                 .1191112	.1590873	.1495416	.2197589	.352501     ;...
                                 .1083412	.1545665	.1546337	.2258108	.3566478    ;...
                                 .0988659	.1318488	.131902		.2270269	.4103564    ;...
                                 .0805305	.0948529	.0935056	.1822857	.5488253    ;       ];  
                             
    data.share_sales_d      = [  .1382299	.1198511	.088699		.1983969	.4548231    ;...
                                 .0917824	.1242205	.1049915	.2233404	.4556651    ;...
                                 .0907693	.1238663	.1073357	.231876		.4461527    ;...
                                 .0665962	.0859403	.0744273	.2207122	.5523239    ;...
                                 .0229403	.0311361	.0297917	.0932898	.8228421    ;       ]';  
                             
    data.share_outdegree_d  = [  .1508885	.144217		.1165535	.2018241	.3865169    ;...
                                 .1306263	.154579		.1334437	.2160001	.3653509    ;...
                                 .1191742	.1496833	.1375256	.2226001	.3710168    ;...
                                 .1045315	.1289759	.1177537	.2246478	.4240911    ;...
                                 .0773695	.091954		.0826642	.1804822	.56753      ;       ]';
  
                             